package util.netty;

import java.text.SimpleDateFormat;
import java.util.Date;

public class WebsocektResponse {
	
	private String code;
	
	private String alias;
	
	private String context;
	
	private String hour;//时间
	
	private SimpleDateFormat format = new SimpleDateFormat("HH:mm");
	
	
	
	public WebsocektResponse() {
		super();
	}

	public WebsocektResponse(String code, String context) {
		super();
		this.code = code;
		this.context = context;
		this.hour = format.format(new Date());
	}
	
	public WebsocektResponse(String code, String alias, String context, String hour) {
		super();
		this.code = code;
		this.alias = alias;
		this.context = context;
		this.hour = hour;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getContext() {
		return context;
	}

	public void setContext(String context) {
		this.context = context;
	}

	public String getHour() {
		return hour;
	}

	public void setHour(String hour) {
		this.hour = hour;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}
	
	
	
	
}
